package com.lyc.wanandroid_kotlin.ui.fragment.mvp.model

import com.cxz.wanandroid.mvp.model.CommonModel
import com.lyc.wanandroid_kotlin.bean.ArticleResponseBody
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.fragment.mvp.contract.SquareContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.fragment.mvp.model
 * Description:
 */
class SquareModel : CommonModel(), SquareContract.Model {
    override fun getSquareList(page: Int): Observable<HttpResult<ArticleResponseBody>> {
        return RetrofitHelper.service.getSquareList(page)
    }
}